﻿using smforj.common.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace smforj.common.service
{
    public interface IEquipment
    {
        /// <summary>
        /// 获取设备配置信息列表
        /// </summary>
        /// <returns>配置信息列表</returns>
        List<ConnConfig>GetEquipList();
    }

    public class CEquipment : IEquipment
    {
        private MonitorConfig config;
        public CEquipment()
        {
            config = MonitorConfig.LoadOrCreate();
        }

        /// <summary>
        /// 获取设备配置信息列表
        /// </summary>
        /// <returns>配置信息列表</returns>
        public List<ConnConfig> GetEquipList()
        {
            return config.GetConnConfig();
        }
    }
}
